package com.su.lesson06;

import javax.swing.*;
import java.awt.*;

public class TextComboboDemo01 extends JFrame {
    public TextComboboDemo01() {
        Container container =getContentPane();
        JComboBox comboBox = new JComboBox();
        comboBox.addItem("正在热映");
        comboBox.addItem("已下架");
        comboBox.addItem("即将上映");

        container.add(comboBox);

        setVisible(true);
        setSize(300, 300);
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }


    public static void main(String[] args) {
        JFrame frame = new TextComboboDemo01();
    }
}
